home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / develop / symcoff.arc / PLFHREAD.C < prev    next >
Text File  |  1988-11-07  |  2KB  |  33 lines

  1. static char *sccsid[]={"@(#)pldfhread.c 2.1",
  2. "Copyright 1985 by Motorola Inc."};
  3. #include <stdio.h>
  4. #ifdef PCPORT
  5. #include "/pld/src/hd/pcport.h"      /*PC-PORT*/
  6. #endif
  7. #include "../hd/pfilehdr.h"
  8. #include "../hd/pldfcn.h"
  9.  
  10. #include "../hd/pldf_dcl.h"        /*PC-PORT*/
  11. /****************** PLDFHREAD ******************************************gs##*/
  12. /*                                                                        ##*/
  13. /*                                                                        ##*/
  14. /* Written by:  Michael Greenberg - MIL                                   ##*/
  15. /*                                                                        ##*/
  16. /* ACTION:                                                                ##*/
  17. /*      Read the file header of a common object file.                     ##*/
  18. /*                                                                        ##*/
  19. /* SYNOPSIS:                                                              ##*/
  20.       int pldfhread(ldptr, filehead)                                    /*##*/
  21. /*    ------------------------------                                      ##*/
  22. register LDFILE *ldptr;                                                 /*##*/
  23. register FILHDR *filehead;                                              /*##*/
  24. /*                                                                        ##*/
  25. /*************************************************************************##*/
  26. {
  27.         fseek(IOPTR(ldptr), OFFSET(ldptr), 0);
  28.         if(fread(filehead, FILHSZ, 1, IOPTR(ldptr)) != 1)
  29.                 return(FAILURE);
  30.         return(SUCCESS);
  31. }
  32. /* Copyright 1985 by Motorola Inc. */
  33.